package mapper.Common;

import org.apache.ibatis.annotations.*;

import java.util.Map;

@Mapper
public interface FileMapper {

    //更新用户头像接口
    @Update("UPDATE User SET icon = #{icon} WHERE userId = #{id};")
    int setUserHeaderPic(@Param("userId") String userId ,@Param("icon") String icon);

    @Update("UPDATE bz_room SET room_pic_url = #{room_pic_url} WHERE room_id = #{id};")
    int setRoomPic(@Param("id")int id ,@Param("room_pic_url") String room_pic_url);

    @Insert("INSERT INTO bz_meeting_data(data_meetingid,data_name,data_type,data_address,data_status) VALUES(#{meeting_id},#{data_name},#{data_type},#{data_address},1);")
    int addMeetingData(@Param("meeting_id") int meeting_id,@Param("data_name")String data_name,@Param("data_type") short data_type,@Param("data_address") String data_address);
}
